package com.nengchuan.kbms.dfs.entity.po;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * t_permission_file（文件权限）
 * </p>
 *
 * @author abe
 * @since 2020-04-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_permission_file")
@ApiModel(value="PermissionFile对象", description="t_permission_file（文件权限）")
public class PermissionFile implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private Long id;

    @ApiModelProperty(value = "业务id（文件，文件夹）")
    private Long bizId;

    @ApiModelProperty(value = "业务类型（d：文件夹；f：文件）")
    private String bizType;

    @ApiModelProperty(value = "用户（成员）id")
    private Long userId;

    @ApiModelProperty(value = "权限编码")
    private String permissionCode;

    @ApiModelProperty(value = "权限开始时间戳")
    private Long permissionBeginDate;

    @ApiModelProperty(value = "权限结束时间戳")
    private Long permissionEndDate;

    @ApiModelProperty(value = "创建人id")
    @TableField(fill = FieldFill.INSERT)
    private Long createId;

    @ApiModelProperty(value = "创建人")
    @TableField(fill = FieldFill.INSERT)
    private String createName;

    @ApiModelProperty(value = "修改人id")
    @TableField(fill = FieldFill.UPDATE)
    private Long modifyId;

    @ApiModelProperty(value = "修改人")
    @TableField(fill = FieldFill.UPDATE)
    private Long modifyName;

    @ApiModelProperty(value = "创建时间戳")
    @TableField(fill = FieldFill.INSERT)
    private Long createTime;

    @ApiModelProperty(value = "修改时间戳")
    @TableField(fill = FieldFill.UPDATE, updateStrategy = FieldStrategy.DEFAULT)
    private Long modifyTime;

}
